﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace it_security_project
{
    public partial class Forum_ : System.Web.UI.Page
    {
        public new Site site { get { return base.Master as Site; } }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (site.LoginWithSession() == null)
            {
                CreateThreadLink.Visible = false;
                CreateThreadLink.Enabled = false;
            }
        }

        protected void CreateThreadOnClick(object sender, EventArgs e)
        {
            Response.Redirect("~/CreateThread.aspx");
        }
    }
}